﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessLogic;
using Infrastructure;

namespace Application
{
    class Program
    {
        static void Main(string[] args)
        {
            var BooksService = new BooksBLL();

            var BooksByAuthor = BooksService.GetAllBooksByAuthor(new Person { FirstName = "Johan", LastName = "Leino" });

            foreach (var book in BooksByAuthor)
            {
                Console.WriteLine("{0}\n", book.ToString());

            }

            Console.ReadLine();
        }
    }
}
